import service from "@/utils/request";

export function login(data){
    return service({
        url:'/api/login/login',
        method:"post",
        loadingMsg:"正在登录",
        // customLoading:true, 是否自定义loading
        data
    })
}

export function verify(data){
    return service({
        url:'/api/Captcha/verify',
        method:"post",
        // loadingMsg:"正在登录",
        customLoading:true, //是否自定义loading
        data
    })
}


export function forget(data){
    return service({
        url:'/api/login/forget',
        method:"post",
        loadingMsg:"正在修改",
        // customLoading:true, //是否自定义loading
        data
    })
}

export function resetPass(data){
    return service({
        url:'/api/login/resetpass',
        method:"post",
        loadingMsg:"正在修改",
        // customLoading:true, //是否自定义loading
        data
    })
}

// 语言包
export function getSystemLang(data){
    return service({
        url:'/api/index/lang',
        method:"post",
        // loadingMsg:"正在授权登录",
        // customLoading:true, 是否自定义loading
        data
    })
}

// 页面配置
export function getSystemConfig(data){
    return service({
        url:'/api/index/config',
        method:"post",
        // loadingMsg:"正在授权登录",
        // customLoading:true, 是否自定义loading
        data
    })
}
